| Leadtools.Dicom.AddIn Namespace > ThreadSafeDictionary<TKey,TValue> Class > Add Method : Add(TKey,TValue) Method | 
'Usage Dim instance As ThreadSafeDictionary(Of TKey,TValue) Dim key As TKey Dim value As TValue instance.Add(key, value)
| Exception | Description | 
|---|---|
| System.ArgumentNullException | key is null. | 
| System.ArgumentException | An element with the same key already exists in the IDictionary. | 
| System.NotSupportedException | The IDictionary is read-only. |